home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2008 February / PCWFEB08.iso / Software / Freeware / Miro 1.0 / Miro_Installer.exe / Miro_Downloader.exe / compiled_templates / feedtab.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2007-11-12  |  3.6 KB  |  78 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.5)
  3.  
  4. from template import Handle, fillAttr, quoteAndFillAttr, fillStaticTemplate
  5. from StringIO import StringIO
  6. from xhtmltools import urlencode
  7. from templatehelper import quoteattr, escape
  8. from string import Template
  9. import app
  10. import views
  11. import sorts
  12. import indexes
  13. import filters
  14. import resources
  15. import gtcache
  16. _ = gtcache.gettext
  17.  
  18. def fillTemplate(domHandler, dtvPlatform, eventCookie, bodyTagExtra, *args, **kargs):
  19.     localvars = locals()
  20.     localvars.update(globals())
  21.     handle = Handle(domHandler, localvars, onUnlink = (lambda : None))
  22.     out = StringIO()
  23.     out.write(u'<?xml version="1.0" encoding="utf-8"?>\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n')
  24.     out.write(u'<html xmlns:t="http://www.participatorypolitics.org/" xmlns:i18n="http://www.participatoryculture.org/i18n">\n<head>\n</head>\n<body')
  25.     out.write(u' ' + bodyTagExtra)
  26.     out.write(u'>\n\n<div dragdestdata="channel-')
  27.     out.write(quoteattr(this.objID()))
  28.     out.write(u'" dragdesttype="')
  29.     out.write(quoteattr(this.obj.getDragDestType()))
  30.     out.write(u'" drageffectchannel="move" class="tab-drop-target ')
  31.     if not this.obj.getFolder() or 'child':
  32.         pass
  33.     out.write(quoteattr(''))
  34.     out.write(u'" drageffectchannelfolder="move">\n<div class="dnd-reorder-indicator circle"></div>\n<div class="dnd-reorder-indicator line"></div>\n<a dragsourcetype="')
  35.     out.write(quoteattr(this.getDragSourceType()))
  36.     out.write(u'" dragicon="channel-tnail-')
  37.     out.write(quoteattr(this.objID()))
  38.     out.write(u'" class="feeditem draggable noselect ')
  39.     if not this.obj.isBlinking() or 'blinking':
  40.         pass
  41.     out.write(quoteattr(''))
  42.     out.write(u'" dragsourcedata="tablist-')
  43.     out.write(quoteattr(this.objID()))
  44.     out.write(u'">\n')
  45.     if not not this.obj.showA():
  46.         out.write(u'<div class="left-bubble blue ')
  47.         if not this.obj.showU() or 'second':
  48.             pass
  49.         out.write(quoteattr(''))
  50.         out.write(u'">\n <div class="right-bubble blue">\n  <div class="number-count blue">')
  51.         out.write(escape(this.obj.numAvailable()))
  52.         out.write(u'</div>\n </div>\n</div>')
  53.     
  54.     out.write(u'\n')
  55.     if not not this.obj.showU():
  56.         out.write(u'<div class="left-bubble green">\n <div class="right-bubble green">\n  <div class="number-count green">')
  57.         out.write(escape(this.obj.numUnwatched()))
  58.         out.write(u'</div>\n </div>\n <div href="#" class="new-video-play-button" onclick="return playNewVideos(event, ')
  59.         out.write(quoteattr(this.objID()))
  60.         out.write(u');">\n     <img src="')
  61.         out.write(quoteattr(resources.url(u'images/play.png')))
  62.         out.write(u'"></img>\n </div>\n</div>')
  63.     
  64.     out.write(u'\n')
  65.     if not not this.obj.isUpdating():
  66.         out.write(u'<div class="feed-loading-icon"></div>')
  67.     
  68.     out.write(u'\n\n<img src="')
  69.     out.write(quoteattr(this.obj.getTablistThumbnail()))
  70.     out.write(u'" id="channel-tnail-')
  71.     out.write(quoteattr(this.objID()))
  72.     out.write(u'" class="icon"></img><div class="name noselect">')
  73.     out.write(escape(this.obj.getTitle()))
  74.     out.write(u'</div>\n</a>\n</div>\n\n</body>\n</html>')
  75.     out.seek(0)
  76.     return (out, handle)
  77.  
  78.